import { createApp } from "vue";
import App from "./App.vue";
import {
  Icon,
  Search,
  Tab,
  Tabs,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Image as VanImage,
  TreeSelect,
  NavBar,
  Card,
  Tabbar,
  TabbarItem,
  List,
  Form,
  Field,
  Button,
  Dialog,
  Overlay,
  Loading,
  Popover,
} from "vant";

import "./utils/rem";
import store from "@/store";
import router from "@/router";
import "./utils/rem";
import { loadingStore } from "@/utils/request";

const app = createApp(App);

app
  .use(Search)
  .use(Icon)
  .use(Tab)
  .use(Tabs)
  .use(Swipe)
  .use(Card)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(VanImage)
  .use(Tabbar)
  .use(TabbarItem)
  .use(TreeSelect)
  .use(Grid)
  .use(GridItem)
  .use(NavBar)
  .use(List)
  .use(Form)
  .use(Field)
  .use(Button)
  .use(Dialog)
  .use(Overlay)
  .use(Loading)
  .use(Popover)
  .use(router)
  .use(loadingStore)
  .use(store);

app.mount("#app");
